package ssm.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;
import ssm.mapper.EmployeeMapper;
import ssm.pojo.Employee;
import ssm.service.EmployeeService;

import java.util.List;

@Service
public class EmployeeServiceImpl implements EmployeeService {
    private EmployeeMapper employeeMapper;
    @Override
    public List<Employee> getAllEmployee() {
        return employeeMapper.getAllEmployee();
    }

    @Override
    public PageInfo<Employee> getEmployeePage(Integer pageNum) {
//        开启分页功能
//        PageHelper.startPage(pageNum,4)
//        return employeeMapper.getAllEmployee();
        return null;
    }
}
